home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 5 / BBS in a Box -Volume V (BBS in a Box) (April 1992).iso / Files / Prog / M / Lex.cpt / Lex / LEXLIB.π folder / COMMEN.C next >
MacBinary  |  1990-06-04  |  1.9 KB  |  [TEXT/KAHL]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Compact Compressed (Unix) (archive/compact) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, Mon Jun 4 18:35:06 1990, modified Mon Jun 4 18:35:06 1990, creator Think C, type ASCII, 1346 bytes "COMMEN.C" , at 0x5c2 382 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[KAHL]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 08 43 4f 4d 4d 45 4e | 2e 43 00 00 00 00 00 00 |..COMMEN|.C......|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4b 41 48 | 4c 00 00 00 00 00 00 00 |.TEXTKAH|L.......|
|00000050| 00 00 00 00 00 05 42 00 | 00 01 7e a2 90 92 9a a2 |......B.|..~.....|
|00000060| 90 92 9a 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 7e 2c 00 00 |........|....~,..|
|00000080| 2f 2a 0d 20 20 48 45 41 | 44 45 52 3a 20 43 55 47 |/*. HEA|DER: CUG|
|00000090| 20 20 20 20 6e 6e 6e 2e | 6e 6e 3b 0d 20 20 54 49 | nnn.|nn;. TI|
|000000a0| 54 4c 45 3a 09 4c 45 58 | 20 2d 20 41 20 4c 65 78 |TLE:.LEX| - A Lex|
|000000b0| 69 63 61 6c 20 41 6e 61 | 6c 79 73 65 72 20 47 65 |ical Ana|lyser Ge|
|000000c0| 6e 65 72 61 74 6f 72 0d | 20 20 56 45 52 53 49 4f |nerator.| VERSIO|
|000000d0| 4e 3a 20 20 20 20 20 20 | 20 31 2e 30 20 66 6f 72 |N: | 1.0 for|
|000000e0| 20 49 42 4d 2d 50 43 0d | 20 20 44 41 54 45 3a 09 | IBM-PC.| DATE:.|
|000000f0| 4a 61 6e 20 33 30 2c 20 | 31 39 38 35 0d 20 20 44 |Jan 30, |1985. D|
|00000100| 45 53 43 52 49 50 54 49 | 4f 4e 3a 20 20 20 41 20 |ESCRIPTI|ON: A |
|00000110| 4c 65 78 69 63 61 6c 20 | 41 6e 61 6c 79 73 65 72 |Lexical |Analyser|
|00000120| 20 47 65 6e 65 72 61 74 | 6f 72 2e 20 46 72 6f 6d | Generat|or. From|
|00000130| 20 55 4e 49 58 0d 20 20 | 4b 45 59 57 4f 52 44 53 | UNIX. |KEYWORDS|
|00000140| 3a 20 20 20 20 20 20 4c | 65 78 69 63 61 6c 20 41 |: L|exical A|
|00000150| 6e 61 6c 79 73 65 72 20 | 47 65 6e 65 72 61 74 6f |nalyser |Generato|
|00000160| 72 20 59 41 43 43 20 43 | 20 50 52 45 50 0d 20 20 |r YACC C| PREP. |
|00000170| 53 59 53 54 45 4d 3a 09 | 49 42 4d 2d 50 43 20 61 |SYSTEM:.|IBM-PC a|
|00000180| 6e 64 20 43 6f 6d 70 61 | 74 69 61 62 6c 65 73 0d |nd Compa|tiables.|
|00000190| 20 20 46 49 4c 45 4e 41 | 4d 45 3a 20 20 20 20 20 | FILENA|ME: |
|000001a0| 20 43 4f 4d 4d 45 4e 2e | 43 0d 20 20 57 41 52 4e | COMMEN.|C. WARN|
|000001b0| 49 4e 47 53 3a 20 20 20 | 20 20 20 54 68 69 73 20 |INGS: | This |
|000001c0| 70 72 6f 67 72 61 6d 20 | 69 73 20 6e 6f 74 20 66 |program |is not f|
|000001d0| 6f 72 20 74 68 65 20 63 | 61 73 75 61 6c 20 75 73 |or the c|asual us|
|000001e0| 65 72 2e 20 49 74 20 77 | 69 6c 6c 0d 09 62 65 20 |er. It w|ill..be |
|000001f0| 75 73 65 66 75 6c 20 70 | 72 69 6d 61 72 69 6c 79 |useful p|rimarily|
|00000200| 20 74 6f 20 65 78 70 65 | 72 74 20 64 65 76 65 6c | to expe|rt devel|
|00000210| 6f 70 65 72 73 2e 0d 20 | 20 43 52 43 3a 09 4e 2f |opers.. | CRC:.N/|
|00000220| 41 0d 20 20 53 45 45 2d | 41 4c 53 4f 3a 20 20 20 |A. SEE-|ALSO: |
|00000230| 20 20 20 59 41 43 43 20 | 61 6e 64 20 50 52 45 50 | YACC |and PREP|
|00000240| 0d 20 20 41 55 54 48 4f | 52 53 3a 20 20 20 20 20 |. AUTHO|RS: |
|00000250| 20 20 53 63 6f 74 74 20 | 47 75 74 68 65 72 79 20 | Scott |Guthery |
|00000260| 31 31 31 30 30 20 6c 65 | 61 66 77 6f 6f 64 20 6c |11100 le|afwood l|
|00000270| 61 6e 65 20 41 75 73 74 | 69 6e 2c 20 54 58 20 37 |ane Aust|in, TX 7|
|00000280| 38 37 35 30 0d 20 20 43 | 4f 4d 50 49 4c 45 52 53 |8750. C|OMPILERS|
|00000290| 3a 20 20 20 20 20 44 45 | 53 4d 45 54 2d 43 0d 20 |: DE|SMET-C. |
|000002a0| 20 52 45 46 45 52 45 4e | 43 45 53 3a 20 20 20 20 | REFEREN|CES: |
|000002b0| 55 4e 49 58 20 53 79 73 | 74 65 6d 73 20 4d 61 6e |UNIX Sys|tems Man|
|000002c0| 75 61 6c 73 0d 2a 2f 0d | 2f 2a 0d 20 2a 20 42 6f |uals.*/.|/*. * Bo|
|000002d0| 62 20 44 65 6e 6e 79 20 | 20 20 20 20 32 38 2d 41 |b Denny | 28-A|
|000002e0| 75 67 2d 38 32 20 20 52 | 65 6d 6f 76 65 20 72 65 |ug-82 R|emove re|
|000002f0| 66 65 72 65 6e 63 65 20 | 74 6f 20 73 74 64 69 6f |ference |to stdio|
|00000300| 2e 68 0d 20 2a 20 53 63 | 6f 74 74 20 47 75 74 68 |.h. * Sc|ott Guth|
|00000310| 65 72 79 20 32 30 2d 4e | 6f 76 2d 38 33 20 20 20 |ery 20-N|ov-83 |
|00000320| 20 20 20 41 64 61 70 74 | 20 66 6f 72 20 49 42 4d | Adapt| for IBM|
|00000330| 20 50 43 20 26 20 44 65 | 53 6d 65 74 20 43 0d 20 | PC & De|Smet C. |
|00000340| 2a 0d 20 2a 09 4d 2e 4a | 2e 20 4d 65 69 6a 65 72 |*. *.M.J|. Meijer|
|00000350| 09 20 39 30 2f 30 36 2f | 30 34 09 52 65 6d 6f 76 |. 90/06/|04.Remov|
|00000360| 65 64 20 62 75 67 20 74 | 68 61 74 20 70 72 6f 64 |ed bug t|hat prod|
|00000370| 75 63 65 64 20 65 72 72 | 6f 72 20 6f 6e 20 73 65 |uced err|or on se|
|00000380| 71 75 65 6e 63 65 0d 20 | 2a 09 09 09 09 09 09 09 |quence. |*.......|
|00000390| 22 2a 2a 2a 2a 5f 2f 22 | 20 61 6e 64 20 63 6f 6d |"****_/"| and com|
|000003a0| 6d 65 6e 74 28 22 2a 5f | 2f 22 29 0d 20 2a 09 09 |ment("*_|/"). *..|
|000003b0| 09 09 09 09 09 28 20 69 | 67 6e 6f 72 65 20 5f 20 |.....( i|gnore _ |
|000003c0| 69 6e 20 74 68 65 20 61 | 62 6f 76 65 20 29 0d 20 |in the a|bove ). |
|000003d0| 2a 2f 0d 23 69 6e 63 6c | 75 64 65 20 22 6c 65 78 |*/.#incl|ude "lex|
|000003e0| 2e 68 22 0d 0d 65 78 74 | 65 72 6e 20 53 48 4f 52 |.h"..ext|ern SHOR|
|000003f0| 54 49 4e 54 20 79 79 6c | 69 6e 65 3b 0d 0d 76 6f |TINT yyl|ine;..vo|
|00000400| 69 64 0d 63 6f 6d 6d 65 | 6e 74 28 6d 61 74 29 0d |id.comme|nt(mat).|
|00000410| 63 68 61 72 20 2a 6d 61 | 74 3b 0d 7b 0d 09 72 65 |char *ma|t;.{..re|
|00000420| 67 69 73 74 65 72 20 53 | 48 4f 52 54 49 4e 54 20 |gister S|HORTINT |
|00000430| 63 3b 0d 09 72 65 67 69 | 73 74 65 72 20 63 68 61 |c;..regi|ster cha|
|00000440| 72 20 2a 63 70 3b 0d 09 | 53 48 4f 52 54 49 4e 54 |r *cp;..|SHORTINT|
|00000450| 20 6c 6e 6f 3b 0d 09 0d | 09 6c 6e 6f 20 3d 20 79 | lno;...|.lno = y|
|00000460| 79 6c 69 6e 65 3b 0d 09 | 63 20 3d 20 31 3b 0d 09 |yline;..|c = 1;..|
|00000470| 66 6f 72 20 28 63 70 20 | 3d 20 6d 61 74 3b 20 2a |for (cp |= mat; *|
|00000480| 63 70 20 26 26 20 63 20 | 3e 3d 20 30 3b 29 20 7b |cp && c |>= 0;) {|
|00000490| 0d 09 09 69 66 20 28 28 | 63 20 3d 20 6c 65 78 63 |...if ((|c = lexc|
|000004a0| 68 61 72 28 29 29 20 3d | 3d 20 27 5c 6e 27 29 0d |har()) =|= '\n').|
|000004b0| 09 09 09 79 79 6c 69 6e | 65 2b 2b 3b 0d 09 09 69 |...yylin|e++;...i|
|000004c0| 66 20 28 63 20 3d 3d 20 | 2a 63 70 29 20 7b 09 2f |f (c == |*cp) {./|
|000004d0| 2a 20 66 6f 75 6e 64 20 | 66 69 72 73 74 20 2a 2f |* found |first */|
|000004e0| 0d 09 09 09 69 66 28 63 | 70 5b 31 5d 20 3d 3d 20 |....if(c|p[1] == |
|000004f0| 27 5c 30 27 29 0d 09 09 | 09 09 62 72 65 61 6b 3b |'\0')...|..break;|
|00000500| 0d 09 09 09 65 6c 73 65 | 0d 09 09 09 09 63 70 2b |....else|.....cp+|
|00000510| 2b 3b 0d 09 09 09 7d 0d | 09 09 65 6c 73 65 20 7b |+;....}.|..else {|
|00000520| 09 09 09 2f 2a 20 72 65 | 73 65 74 20 61 6e 64 20 |.../* re|set and |
|00000530| 74 72 79 20 6d 61 74 63 | 68 20 61 67 61 69 6e 20 |try matc|h again |
|00000540| 2a 2f 0d 09 09 09 63 70 | 20 3d 20 6d 61 74 3b 0d |*/....cp| = mat;.|
|00000550| 09 09 09 77 68 69 6c 65 | 28 63 20 3d 3d 20 2a 63 |...while|(c == *c|
|00000560| 70 29 0d 09 09 09 09 63 | 70 2b 2b 3b 0d 09 09 09 |p).....c|p++;....|
|00000570| 7d 09 09 0d 09 09 7d 0d | 09 69 66 20 28 63 20 3c |}.....}.|.if (c <|
|00000580| 20 30 29 20 7b 0d 09 09 | 79 79 6c 69 6e 65 20 3d | 0) {...|yyline =|
|00000590| 20 6c 6e 6f 3b 0d 09 09 | 6c 65 78 65 72 72 6f 72 | lno;...|lexerror|
|000005a0| 28 22 45 6e 64 20 6f 66 | 20 66 69 6c 65 20 69 6e |("End of| file in|
|000005b0| 20 63 6f 6d 6d 65 6e 74 | 22 29 3b 0d 09 09 7d 0d | comment|");...}.|
|000005c0| 7d 0d 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |}.......|........|
|000005d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000600| 00 00 01 00 00 00 01 4c | 00 00 00 4c 00 00 00 32 |.......L|...L...2|
|00000610| 20 73 65 74 20 74 68 65 | 20 64 65 66 61 75 6c 74 | set the| default|
|00000620| 20 64 69 72 65 63 74 6f | 72 79 0d 23 0d 23 09 55 | directo|ry.#.#.U|
|00000630| 08 43 4f 4d 4d 45 4e 2e | 43 2e 02 00 00 00 54 45 |.COMMEN.|C.....TE|
|00000640| 4d 50 44 53 45 41 00 00 | 00 00 00 00 00 00 00 00 |MPDSEA..|........|
|00000650| 00 00 54 45 4d 50 44 53 | 45 41 00 00 00 00 00 00 |..TEMPDS|EA......|
|00000660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000670| 00 00 a5 3c 63 a1 00 00 | 05 42 00 00 01 7e 64 20 |...<c...|.B...~d |
|00000680| 61 64 64 73 20 74 68 65 | 20 6e 65 77 20 64 65 66 |adds the| new def|
|00000690| 61 75 6c 74 0d 23 09 64 | 69 72 65 63 74 6f 72 79 |ault.#.d|irectory|
|000006a0| 20 74 6f 20 74 68 65 20 | 44 69 72 65 63 74 6f 72 | to the |Director|
|000006b0| 79 20 6d 65 6e 75 20 69 | 66 20 69 74 20 69 73 20 |y menu i|f it is |
|000006c0| 6e 6f 74 20 61 6c 72 65 | 61 64 79 20 70 72 65 73 |not alre|ady pres|
|000006d0| 65 6e 74 2e 0d 23 0d 23 | 0d 23 09 43 6f 70 79 72 |ent..#.#|.#.Copyr|
|000006e0| 69 67 68 74 20 41 70 70 | 6c 65 20 43 6f 6d 70 75 |ight App|le Compu|
|000006f0| 74 65 72 2c 20 49 6e 63 | 2e 20 31 39 38 37 0d 23 |ter, Inc|. 1987.#|
|00000700| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00000710| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000720| 00 00 00 00 00 00 00 06 | 00 04 00 3c 00 24 01 53 |........|...<.$.S|
|00000730| 01 bd 00 3c 00 24 01 53 | 01 bd a2 24 66 da 00 00 |...<.$.S|...$f...|
|00000740| 00 00 00 00 00 00 00 00 | 00 00 01 00 00 00 01 00 |........|........|
|00000750| 00 00 01 4c 00 00 00 4c | 00 00 00 32 00 19 47 f2 |...L...L|...2..G.|
|00000760| 0d 3a 00 00 00 1c 00 32 | 00 00 4d 50 53 52 00 00 |.:.....2|..MPSR..|
|00000770| 00 0a 03 ed ff ff 00 00 | 00 00 00 19 47 ae 00 00 |........|....G...|
+--------+-------------------------+-------------------------+--------+--------+